﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace UrlChecker.Check
{
    public partial class ucRecord : UserControl
    {
        public ucRecord()
        {
            InitializeComponent();
        }

        #region PictureBox

        private void pbClose_Click(object sender, EventArgs e)
        {
            ((Main)this.ParentForm).tsslMsg.Text = "";
            ((Main)this.ParentForm).tsslProgress.Text = "";
            this.Dispose();
        }

        private void pbClose_MouseHover(object sender, EventArgs e)
        {
            this.pbClose.Image = Properties.Resources.close02;
        }

        private void pbClose_MouseLeave(object sender, EventArgs e)
        {
            this.pbClose.Image = Properties.Resources.close01;
        }

        #endregion

        private void btnStart_Click(object sender, EventArgs e)
        {

        }

        private void ThreadCheck()
        {
            string[] SearchEngines = QT.SEO.Setting.Get("SearchEngine").Split('|');
            DataTable dt_Site = QT.SEO.Site.getAll();
            foreach (string SearchEngine in SearchEngines)
            {
                DataTable dt_Search = QT.SEO.SearchEngine.Get(SearchEngine);
                string myURI = dt_Search.Rows[0]["uri"].ToString();
                int codepage = 0;
                if (!(int.TryParse(dt_Search.Rows[0]["codepage"].ToString(), out codepage))) codepage = 0;
            }
        }
    }
}
